package cn.zane.gateway.mapping;

/**
 * 网关接口映射信息
 * @author zane
 * @since 2024-09-10
 */
public class HttpStatement {

    /** 应用名称； */
    private String application;

    /** 服务接口；RPC、其他 */
    private String interfaceName;

    /** 参数类型(RPC 限定单对象参数注册) */
    private String parameterType;

    /** 服务方法；RPC#method */
    private String methodName;

    /** 网关接口 */
    private String uri;

    /** 接口类型；GET、POST、PUT、DELETE */
    private HttpCommandType httpCommandType;

    public HttpStatement(String application, String interfaceName, String parameterType, String methodName, String uri, HttpCommandType httpCommandType) {
        this.application = application;
        this.interfaceName = interfaceName;
        this.parameterType = parameterType;
        this.methodName = methodName;
        this.uri = uri;
        this.httpCommandType = httpCommandType;
    }

    public String getApplication() {
        return application;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public String getUri() {
        return uri;
    }

    public HttpCommandType getHttpCommandType() {
        return httpCommandType;
    }

    public String getParameterType() {
        return parameterType;
    }
}
